package com.wyp168.leetcode;

import java.util.HashSet;
import java.util.Set;

/**
 * @ClassName IsHappyNum
 * @Description TODO
 * @Author wyp168
 * @Date 2022/8/10 15:24
 */
public class IsHappyNum {

    public static void main(String[] args) {

    }



    //TODO  判断是否为快乐数
    public boolean isHappy(int n) {
        Set<Integer> numSet = new HashSet<>();
        return true;
    }

    public Integer getNext(Integer x) {
        int next = 0;
        while (x < 0) {
            next += Math.pow(x % 10,2);
            x /= 10;
        }
        return next;
    }
}
